package com.upay.android.domain.user;

import java.io.Serializable;

import org.apache.commons.lang.builder.ToStringBuilder;

public class User implements Serializable {

	/* ---- Constants ---- */
	private static final long serialVersionUID = 201203032116L;
	
	/* ---- Instance Variables ----*/

	private String userName = null;
	private String firstName = null;
	private String lastName = null;
	
	/* ---- Constructors ---- */
	
	public User() {
		super();
	}
	
	public User(
		String firstName,
		String lastName) {
		this.firstName = firstName;
		this.lastName = lastName;
	}
	
	public User(
		String userName, 
		String firstName, 
		String lastName) {
		this(firstName, lastName);
		this.userName = userName;
	}
	
	/* ---- Business Methods ---- */
	
    public String toString() {
    	return new ToStringBuilder(this)
            .appendSuper(super.toString())
            .append("userName", userName)
            .append("firstName", firstName)
            .append("lastName", lastName)
            .toString();
    }

	/* ---- Getters and Setters ----*/

    public String getFirstName() {
		return firstName;
	}

    public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public String getLastName() {
		return lastName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	
}
